<div id="uni_middle">    
    <div class="breadCrumb">        
        <span class="lbl_deal">DEAL 24/7</span>        
        <span class="ico_all icon_arrow_tim"><em></em></span>
        <?php foreach($arrDeals as $R): ?>
        <span class="ico_all icon_white"><em></em></span>
        <span><a href="/deals/<?php echo Utils::uri_encode($R['post_title']); ?>.<?php echo $R['post_id']; ?>.html"><?php echo $R['post_title'];?></a></span>
		<?php endforeach; ?>       
    </div>
    <?php if(!empty($arrDeals)): ?>
    <div class="box_product">
    	<?php foreach($arrDeals as $R): ?>
        <div class="each_pro">
            <div class="product_info">
            	<?php 
					$R['fields']['slides'] = !empty($R['fields']['slides'])?$R['fields']['slides']:array();
					$arrImages = @explode(';', $R['fields']['slides']); 
				?>
                <a href="/deals/<?php echo Utils::uri_encode($R['post_title']); ?>.<?php echo $R['post_id']; ?>.html" class="img_pro"><img src="<?php echo UPLOADS_URL.'/'.$arrImages[0]; ?>" /></a>                
                <div class="user_action">
                    <div class="choossed">
                        <a href="#" class="ico_all ico_people"><em></em></a>
                        <p class="count_number"><?php echo $R['post_likes_count']; ?></p>
                        <p class="txt">Thích</p>
                    </div>
                    <div class="share">
                        <a href="#" class="ico_all ico_share"><em></em></a>
                        <p class="count_number"><?php echo $R['post_comment_count']; ?></p>
                        <p class="txt">Bình luận</p>
                    </div>
                    <a href="javascript:void(0);" class="ico_all ico_love" onClick="App.like('<?php echo $R['post_id']; ?>');"><em></em></a>
                </div>
                <div class="intro_pro"><?php echo $R['post_title']; ?></div>
                <div class="sale_off">                            
                    <div class="time_count">
                        <span class="ico_all icon_time"><em></em></span>
                        <span class="txt"><?php echo $R['post_expiry_date']; ?></span>
                    </div>                            
                    <div class="percent_promo">
                        <span class="ico_all icon_percent"><em></em></span>
                        <span class="txt">Tiết kiệm <span class="font25"><?php echo isset($R['fields']['discount'])?$R['fields']['discount']:''; ?></span><sup>%</sup></span>
                    </div>
                </div>
            </div>
            <div class="box_vote">
                <span class="ico_all icon_eyesCus"><em></em></span><label><?php echo $R['post_creator']['user_username']; ?></label>
                <span class="like_unlike">
                    <a href="javascript:;" class="ico_all icon_like"><em></em></a>
                    <a href="javascript:;" class="ico_all icon_like"><em></em></a>
                    <a href="javascript:;" class="ico_all icon_like"><em></em></a>
                    <a href="javascript:;" class="ico_all icon_like"><em></em></a>
                    <a href="javascript:;" class="ico_all icon_unLike"><em></em></a>
                </span>
            </div>
        </div>
        <?php endforeach; ?>
    </div>
    <?php else: ?>
    <div style="text-align:center;">Chưa có deal mới</div>
    <?php endif; ?>
</div>